/**
 *  ward @ 2019
 *  harrydeep@wardyan.top
 */
package top.wardyan.wbaseswt.action.base;



import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;

import top.wardyan.wbaseswt.conf.Const;


/**
 * 
 * @author ward 2019年3月10日
 */
// public class BaseComposite<T extends BaseComposite<T>> extends Composite{
public class BaseComposite<T extends BaseComposite<T>> extends Composite{

	protected AbstractShell parent;
	protected T self;
	// protected Logger log = Logger.getLogger(this.getClass());
	
	public BaseComposite(AbstractShell parent) {
		super(parent, SWT.NONE);
		this.parent = parent;
		this.self = (T) this;
		
		this.createContent();
	}
	
	private void createContent() {
		this.setBounds(this.parent.getClientArea());
		this.setBackground(Const.COLOR_WHITE);
	}

	
}
